<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class WxRobot_SDK</title>

	<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
				<h3>Packages</h3>
			<ul>
				<li>
					<a href="package-None.html">
						None					</a>

						</li>
				<li>
					<a href="package-WxRobot.html">
						WxRobot<span></span>
					</a>

						<ul>
				<li>
					<a href="package-WxRobot.Admin.html">
						Admin					</a>

						</li>
				<li>
					<a href="package-WxRobot.Cmd.html">
						Cmd					</a>

						</li>
				<li>
					<a href="package-WxRobot.CoreFunctions.html">
						CoreFunctions					</a>

						</li>
				<li>
					<a href="package-WxRobot.Exends.html">
						Exends					</a>

						</li>
				<li>
					<a href="package-WxRobot.Install.html">
						Install					</a>

						</li>
				<li>
					<a href="package-WxRobot.Table.html">
						Table					</a>

						</li>
				<li>
					<a href="package-WxRobot.Uninstall.html">
						Uninstall					</a>

						</li>
				<li>
					<a href="package-WxRobot.WxSDK.html">
						WxSDK					</a>

						</li>
							</ul></li>
			</ul>
		</div>

		<hr>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-WxRobot_SDK.html">WxRobot_SDK</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text" placeholder="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
<span>Package</span>			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class WxRobot_SDK</h1>


	<div class="description">
	<p>微信机器人核心Api</p>
	</div>









	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-WxRobot.html">WxRobot</a>\<a href="package-WxRobot.WxSDK.html">WxSDK</a><br>

				<b>Category:</b>
				WxSDK<br>
				<b>Author:</b>
				midoks<br>
				<b>Since:</b>
				5.3.0<br>
			<b>Located at</b> <a href="source-class-WxRobot_SDK.html#2-916" title="Go to source code">weixin-sdk-api/class-wx-sdk.php</a>
		<br>
	</div>



	<table class="summary methods" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 

			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-WxRobot_SDK.html#17-22" title="Go to source code">__construct</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			







		</div>
		</div></td>
	</tr>
	<tr data-order="instance" id="_instance">

		<td class="attributes"><code>
			 public static

			<code><a href="class-WxRobot_SDK.html">WxRobot_SDK</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_instance">#</a>
		<code><a href="source-class-WxRobot_SDK.html#24-34" title="Go to source code">instance</a>( )</code>

		<div class="description short">
			<p>WxRobot SDK类实例化</p>
		</div>

		<div class="description detailed hidden">
			<p>WxRobot SDK类实例化</p>



				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-WxRobot_SDK.html">WxRobot_SDK</a></code><br>instance
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toMsgText" id="_toMsgText">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMsgText">#</a>
		<code><a href="source-class-WxRobot_SDK.html#37-54" title="Go to source code">toMsgText</a>( <span> <var>$Msg</var></span>, <span> <var>$mode</var> = <span class="php-num">1</span></span> )</code>

		<div class="description short">
			<p>返回文本信信息</p>
		</div>

		<div class="description detailed hidden">
			<p>返回文本信信息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$Msg</var></dt>
					<dd>信息</dd>
					<dt><var>$mode</var></dt>
					<dd>是否开启截取模式(0:不开启,1:开启.默认开启)</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string<br><p>xml
exp:
echo $this->toMsgText($contentStr);//文本地址</p>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toMsgTextAlink" id="_toMsgTextAlink">

		<td class="attributes"><code>
			 public 

			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMsgTextAlink">#</a>
		<code><a href="source-class-WxRobot_SDK.html#56-79" title="Go to source code">toMsgTextAlink</a>( <span>array <var>$alink</var></span>, <span>string <var>$suffix</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			<p>在手机客服端显示的一种(仅在客服端,有效果)</p>
		</div>

		<div class="description detailed hidden">
			<p>在手机客服端显示的一种(仅在客服端,有效果)</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$alink</var></dt>
					<dd></dd>
					<dt><var>$suffix</var></dt>
					<dd>(一般为"\r\n", 默认为空)</dd>
				</dl></div>



				<h4>Exp:</h4>
				<div class="list">
						<p>$alink[0]['link'] = 'midoks.cachecha.com';
$alink[0]['title'] = '你好';</p><br>
				</div>
				<h4>Info</h4>
				<div class="list">
						由(http://weibo.com/clothand)提供, 当然我做了优化<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="toMsgPic" id="_toMsgPic">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMsgPic">#</a>
		<code><a href="source-class-WxRobot_SDK.html#82-92" title="Go to source code">toMsgPic</a>( <span> <var>$MediaId</var></span> )</code>

		<div class="description short">
			<p>返回图片信息(测试未成功)</p>
		</div>

		<div class="description detailed hidden">
			<p>返回图片信息(测试未成功)</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$MediaId</var></dt>
					<dd>图片信息</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string<br><p>xml
exp:
echo $this->toMsgPic($MediaId);图</p>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toMsgVoice" id="_toMsgVoice">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMsgVoice">#</a>
		<code><a href="source-class-WxRobot_SDK.html#95-105" title="Go to source code">toMsgVoice</a>( <span>MediaId <var>$MediaId</var></span> )</code>

		<div class="description short">
			<p>返回voice xml</p>
		</div>

		<div class="description detailed hidden">
			<p>返回voice xml</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$MediaId</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string<br><p>xml
exp:
echo $this->toMsgVoice($MediaId);</p>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toMsgMusic" id="_toMsgMusic">

		<td class="attributes"><code>
			 public 

			xml
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMsgMusic">#</a>
		<code><a href="source-class-WxRobot_SDK.html#107-120" title="Go to source code">toMsgMusic</a>( <span>string <var>$title</var></span>, <span>string <var>$desc</var></span>, <span>string <var>$MusicUrl</var></span>, <span>string <var>$HQMusicUrl</var></span>, <span> <var>$ThumbMediaId</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			<p>返回music xml</p>
		</div>

		<div class="description detailed hidden">
			<p>返回music xml</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$title</var></dt>
					<dd>标题</dd>
					<dt><var>$desc</var></dt>
					<dd>描述</dd>
					<dt><var>$MusicUrl</var></dt>
					<dd>地址</dd>
					<dt><var>$HQMusicUrl</var></dt>
					<dd>高清播放(会首先选择)</dd>
					<dt><var>$ThumbMediaId</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					xml<br><p>exp:
echo $this->toMsgVoice('声音','当男人好难！', $MusicUrl, $MusicUrl);//voice</p>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toMsgVideo" id="_toMsgVideo">

		<td class="attributes"><code>
			 public 

			xml
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMsgVideo">#</a>
		<code><a href="source-class-WxRobot_SDK.html#122-131" title="Go to source code">toMsgVideo</a>( <span> <var>$media_id</var></span>, <span> <var>$thumb_media_id</var></span> )</code>

		<div class="description short">
			<p>返回video xml</p>
		</div>

		<div class="description detailed hidden">
			<p>返回video xml</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$media_id</var></dt>
					<dd></dd>
					<dt><var>$thumb_media_id</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					xml
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toMsgTextPic" id="_toMsgTextPic">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMsgTextPic">#</a>
		<code><a href="source-class-WxRobot_SDK.html#133-184" title="Go to source code">toMsgTextPic</a>( <span>array <var>$picTextInfo</var></span>, <span>array <var>$array</var>,…</span> )</code>

		<div class="description short">
			<p>返回图文</p>
		</div>

		<div class="description detailed hidden">
			<p>返回图文</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$picTextInfo</var></dt>
					<dd>$info</dd>
					<dt><var>$array</var>,…</dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string<br><p>xml
exp
$textPic = array(
    array(
        'title'=> '标题',
        'desc'=> '描述',
        'pic'=> $this->bigPic(),//图片地址
        'link'=>$pic,//图片链接地址
    ),//第一个图片为大图
    array(
        'title'=> '标题',
        'desc'=> '描述',
        'pic'=> $this->smallPic(),//图片地址
        'link'=> '',//图片链接地址
    ),//此自以后皆为小图
    array(
        'title'=> '标题',
        'desc' => '描述',
        'pic'  => $this->smallPic(),//图片地址
        'link' => '',//图片链接地址
    ),
    array(
        'title'=> '标题',
        'desc' => '描述',
        'pic'  => $this->smallPic(),//图片地址
        'link' => '',//图片链接地址
    ),
    array(
        'title'=> '标题',
        'desc' => '描述',
        'pic'  => $this->smallPic(),//图片地址
        'link' => '',//图片链接地址
    ),
    array(
        'title'=> '标题',
        'desc' => '描述',
        'pic'  => $this->smallPic(),//图片地址
        'link' => '',//图片链接地址
    ),
);
echo $this->toMsgTextPic($textPic);//图文</p>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="toMsgTextPicList" id="_toMsgTextPicList">

		<td class="attributes"><code>
			 public 

			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_toMsgTextPicList">#</a>
		<code><a href="source-class-WxRobot_SDK.html#186-202" title="Go to source code">toMsgTextPicList</a>( <span> <var>$list</var></span> )</code>

		<div class="description short">
			<p>在客服端列表的展示形式</p>
		</div>

		<div class="description detailed hidden">
			<p>在客服端列表的展示形式</p>

<p>$list[0]['title'] = '0';
$list[0]['desc'] =  '0';
$list[0]['link'] = "http://midok.cachecha.com/";</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="getReToken" id="_getReToken">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getReToken">#</a>
		<code><a href="source-class-WxRobot_SDK.html#204-216" title="Go to source code">getReToken</a>( )</code>

		<div class="description short">
			<p>重新获取token</p>
		</div>

		<div class="description detailed hidden">
			<p>重新获取token</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getToken" id="_getToken">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getToken">#</a>
		<code><a href="source-class-WxRobot_SDK.html#218-254" title="Go to source code">getToken</a>( )</code>

		<div class="description short">
			<p>获取token</p>
		</div>

		<div class="description detailed hidden">
			<p>获取token</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getCustomServiceLog" id="_getCustomServiceLog">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getCustomServiceLog">#</a>
		<code><a href="source-class-WxRobot_SDK.html#260-273" title="Go to source code">getCustomServiceLog</a>( <span> <var>$open_id</var></span>, <span> <var>$starttime</var></span>, <span> <var>$endtime</var></span>, <span> <var>$pagesize</var> = <span class="php-num">20</span></span>, <span> <var>$pageindex</var> = <span class="php-num">1</span></span> )</code>

		<div class="description short">
			<p>获取客服聊天记录</p>
		</div>

		<div class="description detailed hidden">
			<p>获取客服聊天记录</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>普通用户的标识，对当前公众号唯一</dd>
					<dt><var>$starttime</var></dt>
					<dd>查询开始时间，UNIX时间戳</dd>
					<dt><var>$endtime</var></dt>
					<dd>查询结束时间，UNIX时间戳，每次查询不能跨日查询</dd>
					<dt><var>$pagesize</var></dt>
					<dd>每页大小，每页最多拉取1000条</dd>
					<dt><var>$pageindex</var></dt>
					<dd>查询第几页，从1开始</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string<br>json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="menuDel" id="_menuDel">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_menuDel">#</a>
		<code><a href="source-class-WxRobot_SDK.html#277-286" title="Go to source code">menuDel</a>( )</code>

		<div class="description short">
			<p>删除菜单</p>
		</div>

		<div class="description detailed hidden">
			<p>删除菜单</p>



				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="menuSet" id="_menuSet">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_menuSet">#</a>
		<code><a href="source-class-WxRobot_SDK.html#288-297" title="Go to source code">menuSet</a>( <span>json <var>$json</var></span> )</code>

		<div class="description short">
			<p>设置菜单</p>
		</div>

		<div class="description detailed hidden">
			<p>设置菜单</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>传递json数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="menuGet" id="_menuGet">

		<td class="attributes"><code>
			 public 

			json|boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_menuGet">#</a>
		<code><a href="source-class-WxRobot_SDK.html#299-316" title="Go to source code">menuGet</a>( )</code>

		<div class="description short">
			<p>获取菜单</p>
		</div>

		<div class="description detailed hidden">
			<p>获取菜单</p>



				<h4>Returns</h4>
				<div class="list">
					json|boolean
				</div>


				<h4>Since</h4>
				<div class="list">
						5.3.1<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getSemantic" id="_getSemantic">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getSemantic">#</a>
		<code><a href="source-class-WxRobot_SDK.html#319-335" title="Go to source code">getSemantic</a>( <span>string <var>$query</var></span>, <span>string <var>$appid</var></span>, <span>string <var>$uid</var></span>, <span>string <var>$city</var> = <span class="php-quote">'北京'</span></span>, <span>string <var>$category</var> = <span class="php-quote">'flight,hotel'</span></span>, <span>string <var>$region</var> = <span class="php-quote">''</span></span>, <span>string <var>$lat</var> = <span class="php-quote">''</span></span>, <span>string <var>$long</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			<p>智能语意分析</p>
		</div>

		<div class="description detailed hidden">
			<p>智能语意分析</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$query</var></dt>
					<dd>查询的句子</dd>
					<dt><var>$appid</var></dt>
					<dd>公众号唯一标示</dd>
					<dt><var>$uid</var></dt>
					<dd>用户唯一ID</dd>
					<dt><var>$city</var></dt>
					<dd>城市名称            默认 北京</dd>
					<dt><var>$category</var></dt>
					<dd>需要使用的服务类型   默认flight,hotel</dd>
					<dt><var>$region</var></dt>
					<dd>区域名称            默认为空</dd>
					<dt><var>$lat</var></dt>
					<dd>纬度坐标            默认为空</dd>
					<dt><var>$long</var></dt>
					<dd>经度坐标            默认为空</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgText" id="_pushMsgText">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgText">#</a>
		<code><a href="source-class-WxRobot_SDK.html#339-349" title="Go to source code">pushMsgText</a>( <span>string <var>$open_id</var></span>, <span>string <var>$msg</var></span> )</code>

		<div class="description short">
			<p>推送文本类型的消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送文本类型的消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd></dd>
					<dt><var>$msg</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgImage" id="_pushMsgImage">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgImage">#</a>
		<code><a href="source-class-WxRobot_SDK.html#351-361" title="Go to source code">pushMsgImage</a>( <span>string <var>$open_id</var></span>, <span>string <var>$media_id</var></span> )</code>

		<div class="description short">
			<p>推送图片消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送图片消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd></dd>
					<dt><var>$media_id</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgImageAdv" id="_pushMsgImageAdv">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgImageAdv">#</a>
		<code><a href="source-class-WxRobot_SDK.html#363-376" title="Go to source code">pushMsgImageAdv</a>( <span>string <var>$open_id</var></span>, <span>string <var>$file</var></span> )</code>

		<div class="description short">
			<p>推送高清图片消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送高清图片消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$file</var></dt>
					<dd>文件绝对地址</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgVoice" id="_pushMsgVoice">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgVoice">#</a>
		<code><a href="source-class-WxRobot_SDK.html#378-388" title="Go to source code">pushMsgVoice</a>( <span>string <var>$open_id</var></span>, <span>string <var>$media_id</var></span> )</code>

		<div class="description short">
			<p>推送音频消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送音频消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$media_id</var></dt>
					<dd>资源ID</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgVoiceAdv" id="_pushMsgVoiceAdv">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgVoiceAdv">#</a>
		<code><a href="source-class-WxRobot_SDK.html#390-403" title="Go to source code">pushMsgVoiceAdv</a>( <span>string <var>$open_id</var></span>, <span>string <var>$file</var></span> )</code>

		<div class="description short">
			<p>推送高清音频消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送高清音频消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$file</var></dt>
					<dd>$media_id 资源ID</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgVideo" id="_pushMsgVideo">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgVideo">#</a>
		<code><a href="source-class-WxRobot_SDK.html#405-417" title="Go to source code">pushMsgVideo</a>( <span>string <var>$open_id</var></span>, <span>string <var>$media_id</var></span>, <span>string <var>$title</var></span>, <span>string <var>$desc</var></span> )</code>

		<div class="description short">
			<p>推送视频消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送视频消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$media_id</var></dt>
					<dd>资源ID</dd>
					<dt><var>$title</var></dt>
					<dd>标题</dd>
					<dt><var>$desc</var></dt>
					<dd>描述信息</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgVideoAdv" id="_pushMsgVideoAdv">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgVideoAdv">#</a>
		<code><a href="source-class-WxRobot_SDK.html#419-434" title="Go to source code">pushMsgVideoAdv</a>( <span>string <var>$open_id</var></span>, <span>string <var>$file</var></span>, <span>string <var>$title</var></span>, <span>string <var>$desc</var></span> )</code>

		<div class="description short">
			<p>推送高清视频消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送高清视频消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$file</var></dt>
					<dd>绝对地址</dd>
					<dt><var>$title</var></dt>
					<dd>标题</dd>
					<dt><var>$desc</var></dt>
					<dd>描述信息</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgMusic" id="_pushMsgMusic">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgMusic">#</a>
		<code><a href="source-class-WxRobot_SDK.html#436-450" title="Go to source code">pushMsgMusic</a>( <span>string <var>$open_id</var></span>, <span>string <var>$file</var></span>, <span>string <var>$title</var></span>, <span>string <var>$desc</var></span>, <span>string <var>$musicurl</var></span>, <span>string <var>$hqmusicurl</var></span> )</code>

		<div class="description short">
			<p>推送音乐消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送音乐消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$file</var></dt>
					<dd>文件绝对地址</dd>
					<dt><var>$title</var></dt>
					<dd>标题</dd>
					<dt><var>$desc</var></dt>
					<dd>描述信息</dd>
					<dt><var>$musicurl</var></dt>
					<dd>音乐url地址</dd>
					<dt><var>$hqmusicurl</var></dt>
					<dd>高质量url地址</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgMusicAdv" id="_pushMsgMusicAdv">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgMusicAdv">#</a>
		<code><a href="source-class-WxRobot_SDK.html#452-469" title="Go to source code">pushMsgMusicAdv</a>( <span>string <var>$open_id</var></span>, <span>string <var>$file</var></span>, <span>string <var>$title</var></span>, <span>string <var>$desc</var></span>, <span>string <var>$musicurl</var></span>, <span>string <var>$hqmusicurl</var></span> )</code>

		<div class="description short">
			<p>推送高清音乐消息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送高清音乐消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$file</var></dt>
					<dd>文件绝对地址</dd>
					<dt><var>$title</var></dt>
					<dd>标题</dd>
					<dt><var>$desc</var></dt>
					<dd>描述信息</dd>
					<dt><var>$musicurl</var></dt>
					<dd>音乐url地址</dd>
					<dt><var>$hqmusicurl</var></dt>
					<dd>高质量url地址</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="pushMsgNew" id="_pushMsgNew">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_pushMsgNew">#</a>
		<code><a href="source-class-WxRobot_SDK.html#472-487" title="Go to source code">pushMsgNew</a>( <span>string <var>$open_id</var></span>, <span>array <var>$info</var></span> )</code>

		<div class="description short">
			<p>推送图文信息</p>
		</div>

		<div class="description detailed hidden">
			<p>推送图文信息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$info</var></dt>
					<dd>图文信息</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>


				<h4>Exp:</h4>
				<div class="list">
						<p>$info should be:
    $info[]["title"] = "Happy Day";
     $info[]["description"]="Is Really A Happy Day";
     $info[]["url"] = "URL";
     $info[]["picurl"] = "PIC_URL";</p><br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="download" id="_download">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_download">#</a>
		<code><a href="source-class-WxRobot_SDK.html#491-500" title="Go to source code">download</a>( <span>string <var>$media_id</var></span> )</code>

		<div class="description short">
			<p>下载媒体文件</p>
		</div>

		<div class="description detailed hidden">
			<p>下载媒体文件</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$media_id</var></dt>
					<dd>媒体文件ID</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="upload" id="_upload">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_upload">#</a>
		<code><a href="source-class-WxRobot_SDK.html#502-512" title="Go to source code">upload</a>( <span>string <var>$type</var></span>, <span>string <var>$file</var></span> )</code>

		<div class="description short">
			<p>上传媒体文件</p>
		</div>

		<div class="description detailed hidden">
			<p>上传媒体文件</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$type</var></dt>
					<dd>媒体文件类型，分别有图片（image）、语音（voice）、视频（video）和缩略图（thumb）</dd>
					<dt><var>$file</var></dt>
					<dd>文件地址</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getUserInfo" id="_getUserInfo">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getUserInfo">#</a>
		<code><a href="source-class-WxRobot_SDK.html#526-536" title="Go to source code">getUserInfo</a>( <span>string <var>$open_id</var></span>, <span>string <var>$lang</var> = <span class="php-quote">'zh_CN'</span></span> )</code>

		<div class="description short">
			<p>获取用户信息</p>
		</div>

		<div class="description detailed hidden">
			<p>获取用户信息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>普通用户的标识，对当前公众号唯一</dd>
					<dt><var>$lang</var></dt>
					<dd>返回国家地区语言版本，zh_CN 简体，zh_TW 繁体，en 英语</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getUserList" id="_getUserList">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getUserList">#</a>
		<code><a href="source-class-WxRobot_SDK.html#538-547" title="Go to source code">getUserList</a>( <span>string <var>$next_openid</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			<p>获取用户列表</p>
		</div>

		<div class="description detailed hidden">
			<p>获取用户列表</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$next_openid</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="setUserGroup" id="_setUserGroup">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setUserGroup">#</a>
		<code><a href="source-class-WxRobot_SDK.html#549-557" title="Go to source code">setUserGroup</a>( <span>json <var>$json</var></span> )</code>

		<div class="description short">
			<p>创建分组</p>
		</div>

		<div class="description detailed hidden">
			<p>创建分组</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getUserGroup" id="_getUserGroup">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getUserGroup">#</a>
		<code><a href="source-class-WxRobot_SDK.html#559-567" title="Go to source code">getUserGroup</a>( )</code>

		<div class="description short">
			<p>查询所有组</p>
		</div>

		<div class="description detailed hidden">
			<p>查询所有组</p>



				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getUserGroupPosition" id="_getUserGroupPosition">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getUserGroupPosition">#</a>
		<code><a href="source-class-WxRobot_SDK.html#569-578" title="Go to source code">getUserGroupPosition</a>( <span>json <var>$json</var></span> )</code>

		<div class="description short">
			<p>查询分组用户所在分组</p>
		</div>

		<div class="description detailed hidden">
			<p>查询分组用户所在分组</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="modUserGroup" id="_modUserGroup">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_modUserGroup">#</a>
		<code><a href="source-class-WxRobot_SDK.html#580-589" title="Go to source code">modUserGroup</a>( <span>json <var>$json</var></span> )</code>

		<div class="description short">
			<p>修改分组名</p>
		</div>

		<div class="description detailed hidden">
			<p>修改分组名</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="movUserGroup" id="_movUserGroup">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_movUserGroup">#</a>
		<code><a href="source-class-WxRobot_SDK.html#591-600" title="Go to source code">movUserGroup</a>( <span>json <var>$json</var></span> )</code>

		<div class="description short">
			<p>移动用户分组</p>
		</div>

		<div class="description detailed hidden">
			<p>移动用户分组</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="updateRemark" id="_updateRemark">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_updateRemark">#</a>
		<code><a href="source-class-WxRobot_SDK.html#602-612" title="Go to source code">updateRemark</a>( <span>string <var>$open_id</var></span>, <span>string <var>$remark</var></span> )</code>

		<div class="description short">
			<p>备注用户</p>
		</div>

		<div class="description detailed hidden">
			<p>备注用户</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$open_id</var></dt>
					<dd>用户open_id</dd>
					<dt><var>$remark</var></dt>
					<dd>标记</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="get_ticket_url" id="_get_ticket_url">

		<td class="attributes"><code>
			 public 

			url
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get_ticket_url">#</a>
		<code><a href="source-class-WxRobot_SDK.html#617-646" title="Go to source code">get_ticket_url</a>( <span>string <var>$scene_id</var> = <span class="php-quote">'midoks'</span></span>, <span>time <var>$time</var> = <span class="php-quote">'3000'</span></span>, <span>string <var>$type</var> = <span class="php-quote">'temp'</span></span> )</code>

		<div class="description short">
			<p>获取二维码的图片的图片路径</p>
		</div>

		<div class="description detailed hidden">
			<p>获取二维码的图片的图片路径</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$scene_id</var></dt>
					<dd>识别标示,默认midoks</dd>
					<dt><var>$time</var></dt>
					<dd>过期时间 当$type为temp类型时有效, 默认5分钟</dd>
					<dt><var>$type</var></dt>
					<dd>二维码的类型, 默认temp, 还有 permanent 类型</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					url
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="temp_ticket" id="_temp_ticket">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_temp_ticket">#</a>
		<code><a href="source-class-WxRobot_SDK.html#648-657" title="Go to source code">temp_ticket</a>( <span>json <var>$json</var></span> )</code>

		<div class="description short">
			<p>创建二维码ticket</p>
		</div>

		<div class="description detailed hidden">
			<p>创建二维码ticket</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="permanent_ticket" id="_permanent_ticket">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_permanent_ticket">#</a>
		<code><a href="source-class-WxRobot_SDK.html#659-668" title="Go to source code">permanent_ticket</a>( <span>json <var>$json</var></span> )</code>

		<div class="description short">
			<p>创建永久二维码ticket</p>
		</div>

		<div class="description detailed hidden">
			<p>创建永久二维码ticket</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="get_ticket" id="_get_ticket">

		<td class="attributes"><code>
			 public 

			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get_ticket">#</a>
		<code><a href="source-class-WxRobot_SDK.html#670-677" title="Go to source code">get_ticket</a>( <span> <var>$ticket</var></span> )</code>

		<div class="description short">
			<p>获取ticket,返回路径</p>
		</div>

		<div class="description detailed hidden">
			<p>获取ticket,返回路径</p>

<p>@</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="long2short" id="_long2short">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_long2short">#</a>
		<code><a href="source-class-WxRobot_SDK.html#679-688" title="Go to source code">long2short</a>( <span>string <var>$url</var></span> )</code>

		<div class="description short">
			<p>把长连接转换为短链接</p>
		</div>

		<div class="description detailed hidden">
			<p>把长连接转换为短链接</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$url</var></dt>
					<dd>URL地址</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="sendGroupInfo" id="_sendGroupInfo">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sendGroupInfo">#</a>
		<code><a href="source-class-WxRobot_SDK.html#694-752" title="Go to source code">sendGroupInfo</a>( <span>array <var>$json</var></span> )</code>

		<div class="description short">
			<p>分组群发接口</p>
		</div>

		<div class="description detailed hidden">
			<p>分组群发接口</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json<br><p>exp:
    $msg[] = array(
    'image' => WEIXIN_PLUGINS."/demo.jpg",  //仅支持jpg(必须是本地的图片)
    'author' => "xxx",                  //作者
    'title' => "Happy Day",             //标题
    'content_source_url' => "www.qq.com",//内容地址
    'content' => "content",             //内容
    'digest' => "digest",               //图文消息的描述
    'show_cover_pic' => "1"             //是否显示封面,0,为不显示,1,为显示
),</p>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="uploadMsgImageText" id="_uploadMsgImageText">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_uploadMsgImageText">#</a>
		<code><a href="source-class-WxRobot_SDK.html#754-780" title="Go to source code">uploadMsgImageText</a>( <span>array <var>$msg</var></span> )</code>

		<div class="description short">
			<p>上传图文消息素材优化版</p>
		</div>

		<div class="description detailed hidden">
			<p>上传图文消息素材优化版</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$msg</var></dt>
					<dd>上传消息数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json<br><p>exp:
    $msg[] = array(
    'thumb_media_id' => "qI6_Ze_6PtV7svjolgs",
    'author' => "xxx",
    'title' => "Happy Day",
    'content_source_url' => "www.qq.com",
    'content' => "content",
    'digest' => "digest",
    'show_cover_pic' => "1"
),</p>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="sendAllByGroup" id="_sendAllByGroup">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sendAllByGroup">#</a>
		<code><a href="source-class-WxRobot_SDK.html#782-793" title="Go to source code">sendAllByGroup</a>( <span>string <var>$group_id</var></span>, <span>string <var>$media_id</var></span>, <span>string <var>$msgtype</var> = <span class="php-quote">'mpnews'</span></span> )</code>

		<div class="description short">
			<p>通过分组进行群发</p>
		</div>

		<div class="description detailed hidden">
			<p>通过分组进行群发</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$group_id</var></dt>
					<dd>分组ID</dd>
					<dt><var>$media_id</var></dt>
					<dd>资源ID</dd>
					<dt><var>$msgtype</var></dt>
					<dd>资源类型</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="sendAll" id="_sendAll">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sendAll">#</a>
		<code><a href="source-class-WxRobot_SDK.html#795-805" title="Go to source code">sendAll</a>( <span>array <var>$user</var></span>, <span>string <var>$media_id</var></span>, <span> <var>$msgtype</var> = <span class="php-quote">'mpnews'</span></span> )</code>

		<div class="description short">
			<p>根据OpenID列表群发</p>
		</div>

		<div class="description detailed hidden">
			<p>根据OpenID列表群发</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$user</var></dt>
					<dd>发送用户列表</dd>
					<dt><var>$media_id</var></dt>
					<dd>资源ID</dd>
					<dt><var>$msgtype</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="deleteSend" id="_deleteSend">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_deleteSend">#</a>
		<code><a href="source-class-WxRobot_SDK.html#807-816" title="Go to source code">deleteSend</a>( <span>integer <var>$id</var></span> )</code>

		<div class="description short">
			<p>删除群发信息</p>
		</div>

		<div class="description detailed hidden">
			<p>删除群发信息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd>要删除群发的ID</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="sendTemplateInfo" id="_sendTemplateInfo">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sendTemplateInfo">#</a>
		<code><a href="source-class-WxRobot_SDK.html#818-854" title="Go to source code">sendTemplateInfo</a>( <span>array <var>$json</var></span> )</code>

		<div class="description short">
			<p>模版接口发送消息</p>
		</div>

		<div class="description detailed hidden">
			<p>模版接口发送消息</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$json</var></dt>
					<dd>模版信息</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json<br><p>exp: $array = array(
    "touser"=>"OPENID",
     "template_id"=>"ngqIpbwh8bUfcSsECmogfXcV14J0tQlEpBO27izEYtY",
     "url"=>"http://weixin.qq.com/download",
     "topcolor"=>"#FF0000",
    "data"=> array(
        "first"=>array(
            "value"=>"您好，您已成功消费。",
             "color"=>"#0A0A0A"
         ),
        "keynote1"=>array(
            "value"=>"巧克力",
             "color"=>"#CCCCCC"
         ),
        "keynote2"=>array(
            "value"=>"39.8元",
             "color"=>"#CCCCCC"
         ),
        "keynote3"=>array(
            "value"=>"2014年9月16日",
             "color"=>"#CCCCCC"
         ),
            "remark"=>array(
            "value"=>"欢迎再次购买。",
            "color"=>"#173177"
          )
    )
);</p>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="getWeixinIp" id="_getWeixinIp">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getWeixinIp">#</a>
		<code><a href="source-class-WxRobot_SDK.html#856-864" title="Go to source code">getWeixinIp</a>( )</code>

		<div class="description short">
			<p>获取微信可以IP</p>
		</div>

		<div class="description detailed hidden">
			<p>获取微信可以IP</p>



				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="byte_substr" id="_byte_substr">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_byte_substr">#</a>
		<code><a href="source-class-WxRobot_SDK.html#868-904" title="Go to source code">byte_substr</a>( <span>string <var>$str</var></span>, <span>integer <var>$len</var> = <span class="php-num">2048</span></span> )</code>

		<div class="description short">
			<p>返回定长字节(仅utf-8)</p>
		</div>

		<div class="description detailed hidden">
			<p>返回定长字节(仅utf-8)</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$str</var></dt>
					<dd>截取字符传</dd>
					<dt><var>$len</var></dt>
					<dd>字节长度(默认:2048字节)</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="to_json" id="_to_json">

		<td class="attributes"><code>
			 public 

			json
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_to_json">#</a>
		<code><a href="source-class-WxRobot_SDK.html#906-914" title="Go to source code">to_json</a>( <span>array <var>$arr</var></span> )</code>

		<div class="description short">
			<p>转化为微信可识别的json</p>
		</div>

		<div class="description detailed hidden">
			<p>转化为微信可识别的json</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$arr</var></dt>
					<dd>数组</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					json
				</div>




		</div>
		</div></td>
	</tr>
	</table>












	<table class="summary properties" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="_instance" id="$_instance">
		<td class="attributes"><code>
			public static 
			
		</code></td>

		<td class="name">
				<a href="source-class-WxRobot_SDK.html#12-15" title="Go to source code"><var>$_instance</var></a>

			<div class="description short">
				<p>WxRobot_SDK Instance</p>
			</div>

			<div class="description detailed hidden">
				<p>WxRobot_SDK Instance</p>

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$_instance" class="anchor">#</a>
				<code><span class="php-keyword1">null</span></code>
			</div>
		</td>
	</tr>
	</table>






</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
